home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / comms / internet / html-related / hsc / source / hsclib / msgid.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  7KB  |  166 lines

  1. /*
  2.  * hsclib/msgid.h
  3.  *
  4.  * defines for message-ids (warnings, errors,..)
  5.  *
  6.  * updated:  3-Aug-1996
  7.  * created: 30-Jul-1995
  8.  */
  9.  
  10. #ifndef HSC_MSGID_H
  11. #define HSC_MSGID_H
  12.  
  13. #include "ugly/utypes.h"
  14.  
  15. /* masks for message classes */
  16. #define MASK_MESSAGE   0x0fff
  17. #define MASK_MSG_CLASS 0xf000
  18.  
  19. /* message  classes */
  20. #define MSG_NOTE  0x00000       /* message */
  21. #define MSG_STYLE 0x01000       /* bad style */
  22. #define MSG_PORT  0x02000       /* portability prolem */
  23. #define MSG_WARN  0x03000       /* warning */
  24. #define MSG_ERROR 0x04000       /* error */
  25. #define MSG_FATAL 0x0f000       /* fatal error */
  26. #define MSG_NONE  0xff000       /* out of msg-array */
  27.  
  28. /*
  29.  *=========================
  30.  * next message number
  31.  *=========================
  32.  */
  33. #define MAX_MSGID (84-1)
  34.  
  35. /*
  36.  * obsolete numbers:
  37.  * - none
  38.  * #define MSG_NO_OUTPUT          (MSG_FATAL+  4)   / * can't open output file * /
  39.  * #define MSG_NO_OUTFNAME        (MSG_FATAL+  5)   / * can't evaluate outp-filenm. * /
  40.  * #define MSG_WSPC_AROUND_TAG    (MSG_STYLE+  8)   / * white space around tag * /
  41.  *
  42.  */
  43.  
  44. /*
  45.  * fatal errors
  46.  */
  47. #define MSG_NEW_PRJFILE        (MSG_WARN +  1)  /* creating new project file */
  48. #define MSG_CORRUPT_PRJFILE    (MSG_FATAL+  2)  /* corrupt project file */
  49. #define MSG_UNEX_EOF           (MSG_FATAL+  3)  /* unexpected eof */
  50. #define MSG_NO_INPUT           (MSG_FATAL+  6)  /* can't open input file */
  51. #define MSG_NO_CONFIG          (MSG_FATAL+ 40)  /* can't open config */
  52.  
  53. /*
  54.  * information messages
  55.  */
  56. #define MSG_TAG_STRIPPED       (MSG_NOTE +  7)  /* stripped tag with ext. href */
  57. #define MSG_TAG_CANT_STRIP     (MSG_WARN + 70)  /* can't strp special tag */
  58.  
  59. /*
  60.  * bad style messages
  61.  */
  62. #define MSG_WRONG_HEADING      (MSG_PORT +  9)  /* wrong heading */
  63. #define MSG_CLICK_HERE         (MSG_STYLE+ 10)  /* click-here-syndrome */
  64.  
  65. /*
  66.  * messages within tags
  67.  */
  68. #define MSG_UNKN_TAG           (MSG_WARN + 11)  /* unknown tag */
  69. #define MSG_TAG_TOO_OFTEN      (MSG_ERROR+ 12)  /* tag occured too often */
  70. #define MSG_UNMA_CTAG          (MSG_ERROR+ 13)  /* unmatched end-tag */
  71. #define MSG_CTAG_NESTING       (MSG_WARN + 14)  /* illegal end-tag nesting */
  72. #define MSG_MISS_REQTAG        (MSG_WARN + 15)  /* required tag missing */
  73. #define MSG_MISS_CTAG          (MSG_WARN + 16)  /* end-tag missing */
  74. #define MSG_UNKN_TAG_OPTION    (MSG_ERROR+ 17)  /* unknown tag option */
  75. #define MSG_TAG_OBSOLETE       (MSG_WARN + 37)  /* obsolete tag */
  76. #define MSG_TAG_JERK           (MSG_WARN + 38)  /* jerk tag */
  77. #define MSG_ILLG_WHTSPC        (MSG_ERROR+ 47)  /* illegal whitespace */
  78. #define MSG_MBI                (MSG_ERROR+ 60)  /* must be inside */
  79. #define MSG_NAW                (MSG_ERROR+ 61)  /* not allowed with */
  80. #define MSG_ILLG_CTAG          (MSG_ERROR+ 66)  /* illegal end-tag */
  81. #define MSG_SUCC_WHTSPC        (MSG_STYLE+ 78)  /* succeeding white-space */
  82. #define MSG_PREC_WHTSPC        (MSG_STYLE+ 79)  /* preceeding white-space */
  83.  
  84. /*
  85.  * messages within entities
  86.  */
  87. #define MSG_UNKN_ENTITY        (MSG_WARN + 18)  /* unknown entity */
  88. #define MSG_EXPT_SEMIK         (MSG_WARN + 19)  /* ";" expected */
  89. #define MSG_RPLC_ENT           (MSG_NOTE + 46)  /* replaced entity */
  90. #define MSG_RPLC_SPCCHR        (MSG_NOTE + 52)  /* replaced special char */
  91. #define MSG_ILLG_DEFENT        (MSG_ERROR+ 69)  /* illegal entity definition */
  92. #define MSG_ICON_ENTITY        (MSG_PORT + 58)  /* icon-entity found */
  93. #define MSG_RPLC_ICON          (MSG_NOTE + 77)  /* icon-entity found */
  94. #define MSG_ILLG_NUMENT        (MSG_ERROR+ 32)  /* illegal numeric entity */
  95.  
  96. /*
  97.  * messages within attributes
  98.  */
  99. #define MSG_UNKN_ATTR          (MSG_ERROR+ 20)  /* unknown symbol */
  100. #define MSG_NO_URIPATH         (MSG_WARN + 21)  /* path to URI not found */
  101. #define MSG_ARG_NO_QUOTE       (MSG_WARN + 22)  /* argument without quote */
  102. #define MSG_EMPTY_SYMB_REF     (MSG_ERROR+ 23)  /* empty symbol reference */
  103. #define MSG_ILLG_ATTR_FLAG     (MSG_WARN + 24)  /* attribute flag not allowed here */
  104.  
  105. #define MSG_UNEX_ATTR_TYPE     (MSG_ERROR+ 25)  /* illegal symbol type */
  106.  
  107. #define MSG_SYMB_2ND_DEFAULT   (MSG_ERROR+ 26)  /* default value already set */
  108. #define MSG_ENUM_UNKN          (MSG_WARN + 35)  /* unknown enum value */
  109. #define MSG_ENUM_SUSPICIOUS    (MSG_WARN + 36)  /* suspicios enum value */
  110. #define MSG_NOARG_ATTR         (MSG_ERROR+ 42)  /* attr requires arg */
  111. #define MSG_UNKN_ATTR_OPTION   (MSG_ERROR+ 43)  /* unknown attr option */
  112. #define MSG_MISS_REQ_ATTR      (MSG_ERROR+ 44)  /* required attr missing */
  113. #define MSG_ATTR_REDEFINED     (MSG_WARN + 63)  /* attr already defined */
  114. #define MSG_ILLG_ATTRNAME      (MSG_ERROR+ 64)  /* illegal attribute identifier */
  115. #define MSG_UNKN_BINOP         (MSG_ERROR+ 65)  /* unknown binary operator */
  116. #define MSG_ATTR_CONST         (MSG_ERROR+ 27)  /* can't change constant attr */
  117.  
  118. /*
  119.  * messages from tag handles
  120.  */
  121. #define MSG_EXPT_H1            (MSG_PORT + 28)  /* Hx: first heading H1 */
  122. #define MSG_ANCH_NO_NMHR       (MSG_ERROR+ 29)  /* A : no NAME or HREF */
  123. #define MSG_CL_TAG_ARG         (MSG_ERROR+ 62)  /* args for end-tag */
  124. #define MSG_LF_IN_COMMENT      (MSG_PORT + 48)  /* LF within comment */
  125. #define MSG_GT_IN_COMMENT      (MSG_PORT + 49)  /* GT within comment */
  126. #define MSG_CMTEND_QUOTE       (MSG_PORT + 50)  /* SGML-comment ends in quotes */
  127. #define MSG_ZERO_COMMENT       (MSG_WARN + 55)  /* SGML zero comment */
  128. #define MSG_ONEW_COMMENT       (MSG_PORT + 56)  /* SGML one word comment */
  129.  
  130. /*
  131.  * messages from hsc-tag handles
  132.  */
  133. #define MSG_UNMA_ELSE          (MSG_ERROR+ 53)  /* unmatched $ELSE */
  134. #define MSG_SYSTEM_RETURN      (MSG_WARN + 54)  /* external process result <> 0 */
  135. #define MSG_DEFTAG_NO_OPEN     (MSG_FATAL+ 57)  /* no opening tag for deftag cl. */
  136. #define MSG_REDEFINE_TAG       (MSG_WARN + 59)  /* redefined & replaced tag */
  137. #define MSG_USER_MESSAGE       (           39)  /* user message */
  138. #define MSG_BLINK_SUX          (MSG_STYLE+ 25)  /* blink sucks  */
  139. #define MSG_FRAME_SUX          (MSG_STYLE+ 76)  /* frames are disgusting */
  140.  
  141. /*
  142.  * messages within expressions
  143.  */
  144. #define MSG_UNKN_ENVVAR        (MSG_WARN + 41)  /* unknown environ. var */
  145. #define MSG_ILLG_NUM           (MSG_WARN + 71)  /* illegal numeric value */
  146. #define MSG_ILLG_COLOR         (MSG_WARN + 72)  /* illegal color value */
  147. #define MSG_REQU_QUOTE         (MSG_WARN + 81)  /* value required quotes */
  148. #define MSG_CHANGED_QUOTE      (MSG_WARN + 82)  /* not assign quote requested */
  149.  
  150. /*
  151.  * misc. messages
  152.  */
  153. #define MSG_UNMA_GT            (MSG_ERROR+ 30)  /* unmatched ">" */
  154. #define MSG_UNEXPT_CH          (MSG_ERROR+ 31)  /* unexpected char */
  155. #define MSG_STR_LF             (MSG_WARN + 33)  /* linefeed in string */
  156. #define MSG_UNEX_EOL           (MSG_ERROR+ 34)  /* unexpected eol */
  157. #define MSG_UNKN_FILETYPE      (MSG_WARN + 68)  /* unknown file type (for size) */
  158. #define MSG_UNKN_LOCAL_ID      (MSG_WARN + 73)  /* unknown local ID */
  159. #define MSG_UNKN_ID            (MSG_WARN + 74)  /* unknown ID */
  160. #define MSG_REDEFINE_ID        (MSG_WARN + 75)  /* duplicate ID */
  161. #define MSG_NOEXEC_OUTPUT      (MSG_WARN + 80)  /* no output-file for <$exec>*/
  162. #define MSG_IOERROR            (MSG_ERROR+ 83)  /* i/o-error */
  163. #define MSG_NO_DOCENTRY        (MSG_WARN + 51)  /* no document-entry for id */
  164. #endif
  165.  
  166.